#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

void fun(int a, int b, int c)
{
	if (a == 0) 
	{
		printf("不存在二次项为 0 的一元二次函数\n");
		return;
	}
	double num = (1.0* b * b) - (4.0 * a * c);
	double n = sqrt(num);
	if (num > 0) 
	{
		printf("x1 = %.2lf x2 = %.2lf\n",(-b + n ) / (2 * a), (-b - n) / (2 * a));
	}
	else if (num == 0) 
	{
		printf("x1 = x2 = %.2lf\n", (-b + n) / (2 * a));
	}
	else 
	{
		printf("这个函数没有实数跟\n");
	}
}

int main() 
{
	int a = 0;
	int b = 0;
	int c = 0;
	scanf("%d %d %d",&a,&b,&c);
	printf("%dx^2 + %dx + %d = 0 \n",a,b,c);
	fun(a,b,c);

	return 0;
}